# The Hazard Library
# Copyright (C) 2012-2025 GEM Foundation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
TEST3_MESH = [
 [[1.10135009e-18, -8.99320590e-03,  1.0],
  [8.99320590e-03, -8.99320590e-03,  1.0],
  [1.79864118e-02, -8.99320590e-03,  1.0],
  [2.69796177e-02, -8.99320590e-03,  1.0],
  [3.59728236e-02, -8.99320590e-03,  1.0],
  [4.49660295e-02, -8.99320590e-03,  1.0],
  [5.39592354e-02, -8.99320590e-03,  1.0],
  [6.29524413e-02, -8.99320590e-03,  1.0],
  [7.19456472e-02, -8.99320590e-03,  1.0],
  [8.09388531e-02, -8.99320590e-03,  1.0],
  [8.99320590e-02, -8.99320590e-03,  1.0],
  [9.89252649e-02, -8.99320590e-03,  1.0]],

 [[1.88012223e-18, -1.53523628e-02,  1.70710678],
  [8.99320590e-03, -1.53523628e-02,  1.70710678],
  [1.79864118e-02, -1.53523628e-02,  1.70710678],
  [2.69796177e-02, -1.53523628e-02,  1.70710678],
  [3.59728236e-02, -1.53523628e-02,  1.70710678],
  [4.49660295e-02, -1.53523628e-02,  1.70710678],
  [5.39592354e-02, -1.53523628e-02,  1.70710678],
  [6.29524413e-02, -1.53523628e-02,  1.70710678],
  [7.19456472e-02, -1.53523628e-02,  1.70710678],
  [8.09388531e-02, -1.53523628e-02,  1.70710678],
  [8.99320590e-02, -1.53523628e-02,  1.70710678],
  [9.89252649e-02, -1.53523628e-02,  1.70710678]],

 [[2.65889441e-18, -2.17115196e-02,  2.41421356],
  [8.99320590e-03, -2.17115196e-02,  2.41421356],
  [1.79864118e-02, -2.17115196e-02,  2.41421356],
  [2.69796177e-02, -2.17115196e-02,  2.41421356],
  [3.59728236e-02, -2.17115196e-02,  2.41421356],
  [4.49660295e-02, -2.17115196e-02,  2.41421356],
  [5.39592354e-02, -2.17115196e-02,  2.41421356],
  [6.29524413e-02, -2.17115196e-02,  2.41421356],
  [7.19456472e-02, -2.17115196e-02,  2.41421356],
  [8.09388531e-02, -2.17115196e-02,  2.41421356],
  [8.99320590e-02, -2.17115196e-02,  2.41421356],
  [9.89252649e-02, -2.17115196e-02,  2.41421356]],

 [[3.43766666e-18, -2.80706765e-02,  3.12132034],
  [8.99320590e-03, -2.80706765e-02,  3.12132034],
  [1.79864118e-02, -2.80706765e-02,  3.12132034],
  [2.69796177e-02, -2.80706765e-02,  3.12132034],
  [3.59728236e-02, -2.80706765e-02,  3.12132034],
  [4.49660295e-02, -2.80706765e-02,  3.12132034],
  [5.39592354e-02, -2.80706765e-02,  3.12132034],
  [6.29524413e-02, -2.80706765e-02,  3.12132034],
  [7.19456472e-02, -2.80706765e-02,  3.12132034],
  [8.09388531e-02, -2.80706765e-02,  3.12132034],
  [8.99320590e-02, -2.80706765e-02,  3.12132034],
  [9.89252649e-02, -2.80706765e-02,  3.12132034]],

 [[4.21643899e-18, -3.44298334e-02,  3.82842712],
  [8.99320590e-03, -3.44298334e-02,  3.82842712],
  [1.79864118e-02, -3.44298334e-02,  3.82842712],
  [2.69796177e-02, -3.44298334e-02,  3.82842712],
  [3.59728236e-02, -3.44298334e-02,  3.82842712],
  [4.49660295e-02, -3.44298334e-02,  3.82842712],
  [5.39592354e-02, -3.44298334e-02,  3.82842712],
  [6.29524413e-02, -3.44298334e-02,  3.82842712],
  [7.19456472e-02, -3.44298334e-02,  3.82842712],
  [8.09388531e-02, -3.44298334e-02,  3.82842712],
  [8.99320590e-02, -3.44298334e-02,  3.82842712],
  [9.89252649e-02, -3.44298334e-02,  3.82842712]]
]
TEST3_SITE = [0.05, -0.01]
TEST3_JB_DISTANCE = 0.0

TEST4_MESH = [
 [[1.10135009e-18, -8.99320590e-03,  1.0],
  [8.99320590e-03, -8.99320590e-03,  1.0],
  [1.79864118e-02, -8.99320590e-03,  1.0],
  [2.69796177e-02, -8.99320590e-03,  1.0],
  [3.59728236e-02, -8.99320590e-03,  1.0],
  [4.49660295e-02, -8.99320590e-03,  1.0],
  [5.39592354e-02, -8.99320590e-03,  1.0],
  [6.29524413e-02, -8.99320590e-03,  1.0],
  [7.19456472e-02, -8.99320590e-03,  1.0],
  [8.09388531e-02, -8.99320590e-03,  1.0],
  [8.99320590e-02, -8.99320590e-03,  1.0],
  [9.89252649e-02, -8.99320590e-03,  1.0]],

 [[1.88012223e-18, -1.53523628e-02,  1.70710678],
  [8.99320590e-03, -1.53523628e-02,  1.70710678],
  [1.79864118e-02, -1.53523628e-02,  1.70710678],
  [2.69796177e-02, -1.53523628e-02,  1.70710678],
  [3.59728236e-02, -1.53523628e-02,  1.70710678],
  [4.49660295e-02, -1.53523628e-02,  1.70710678],
  [5.39592354e-02, -1.53523628e-02,  1.70710678],
  [6.29524413e-02, -1.53523628e-02,  1.70710678],
  [7.19456472e-02, -1.53523628e-02,  1.70710678],
  [8.09388531e-02, -1.53523628e-02,  1.70710678],
  [8.99320590e-02, -1.53523628e-02,  1.70710678],
  [9.89252649e-02, -1.53523628e-02,  1.70710678]],

 [[2.65889441e-18, -2.17115196e-02,  2.41421356],
  [8.99320590e-03, -2.17115196e-02,  2.41421356],
  [1.79864118e-02, -2.17115196e-02,  2.41421356],
  [2.69796177e-02, -2.17115196e-02,  2.41421356],
  [3.59728236e-02, -2.17115196e-02,  2.41421356],
  [4.49660295e-02, -2.17115196e-02,  2.41421356],
  [5.39592354e-02, -2.17115196e-02,  2.41421356],
  [6.29524413e-02, -2.17115196e-02,  2.41421356],
  [7.19456472e-02, -2.17115196e-02,  2.41421356],
  [8.09388531e-02, -2.17115196e-02,  2.41421356],
  [8.99320590e-02, -2.17115196e-02,  2.41421356],
  [9.89252649e-02, -2.17115196e-02,  2.41421356]],

 [[3.43766666e-18, -2.80706765e-02,  3.12132034],
  [8.99320590e-03, -2.80706765e-02,  3.12132034],
  [1.79864118e-02, -2.80706765e-02,  3.12132034],
  [2.69796177e-02, -2.80706765e-02,  3.12132034],
  [3.59728236e-02, -2.80706765e-02,  3.12132034],
  [4.49660295e-02, -2.80706765e-02,  3.12132034],
  [5.39592354e-02, -2.80706765e-02,  3.12132034],
  [6.29524413e-02, -2.80706765e-02,  3.12132034],
  [7.19456472e-02, -2.80706765e-02,  3.12132034],
  [8.09388531e-02, -2.80706765e-02,  3.12132034],
  [8.99320590e-02, -2.80706765e-02,  3.12132034],
  [9.89252649e-02, -2.80706765e-02,  3.12132034]],

 [[4.21643899e-18, -3.44298334e-02,  3.82842712],
  [8.99320590e-03, -3.44298334e-02,  3.82842712],
  [1.79864118e-02, -3.44298334e-02,  3.82842712],
  [2.69796177e-02, -3.44298334e-02,  3.82842712],
  [3.59728236e-02, -3.44298334e-02,  3.82842712],
  [4.49660295e-02, -3.44298334e-02,  3.82842712],
  [5.39592354e-02, -3.44298334e-02,  3.82842712],
  [6.29524413e-02, -3.44298334e-02,  3.82842712],
  [7.19456472e-02, -3.44298334e-02,  3.82842712],
  [8.09388531e-02, -3.44298334e-02,  3.82842712],
  [8.99320590e-02, -3.44298334e-02,  3.82842712],
  [9.89252649e-02, -3.44298334e-02,  3.82842712]]
]
TEST4_SITE = [0.05, -0.1]
TEST4_JB_DISTANCE = 7.304357426954875

TEST5_MESH = [
 [[1.10135009e-18, -8.99320590e-03,  1.0],
  [8.99320590e-03, -8.99320590e-03,  1.0],
  [1.79864118e-02, -8.99320590e-03,  1.0],
  [2.69796177e-02, -8.99320590e-03,  1.0],
  [3.59728236e-02, -8.99320590e-03,  1.0],
  [4.49660295e-02, -8.99320590e-03,  1.0],
  [5.39592354e-02, -8.99320590e-03,  1.0],
  [6.29524413e-02, -8.99320590e-03,  1.0],
  [7.19456472e-02, -8.99320590e-03,  1.0],
  [8.09388531e-02, -8.99320590e-03,  1.0],
  [8.99320590e-02, -8.99320590e-03,  1.0],
  [9.89252649e-02, -8.99320590e-03,  1.0]],

 [[1.88012223e-18, -1.53523628e-02,  1.70710678],
  [8.99320590e-03, -1.53523628e-02,  1.70710678],
  [1.79864118e-02, -1.53523628e-02,  1.70710678],
  [2.69796177e-02, -1.53523628e-02,  1.70710678],
  [3.59728236e-02, -1.53523628e-02,  1.70710678],
  [4.49660295e-02, -1.53523628e-02,  1.70710678],
  [5.39592354e-02, -1.53523628e-02,  1.70710678],
  [6.29524413e-02, -1.53523628e-02,  1.70710678],
  [7.19456472e-02, -1.53523628e-02,  1.70710678],
  [8.09388531e-02, -1.53523628e-02,  1.70710678],
  [8.99320590e-02, -1.53523628e-02,  1.70710678],
  [9.89252649e-02, -1.53523628e-02,  1.70710678]],

 [[2.65889441e-18, -2.17115196e-02,  2.41421356],
  [8.99320590e-03, -2.17115196e-02,  2.41421356],
  [1.79864118e-02, -2.17115196e-02,  2.41421356],
  [2.69796177e-02, -2.17115196e-02,  2.41421356],
  [3.59728236e-02, -2.17115196e-02,  2.41421356],
  [4.49660295e-02, -2.17115196e-02,  2.41421356],
  [5.39592354e-02, -2.17115196e-02,  2.41421356],
  [6.29524413e-02, -2.17115196e-02,  2.41421356],
  [7.19456472e-02, -2.17115196e-02,  2.41421356],
  [8.09388531e-02, -2.17115196e-02,  2.41421356],
  [8.99320590e-02, -2.17115196e-02,  2.41421356],
  [9.89252649e-02, -2.17115196e-02,  2.41421356]],

 [[3.43766666e-18, -2.80706765e-02,  3.12132034],
  [8.99320590e-03, -2.80706765e-02,  3.12132034],
  [1.79864118e-02, -2.80706765e-02,  3.12132034],
  [2.69796177e-02, -2.80706765e-02,  3.12132034],
  [3.59728236e-02, -2.80706765e-02,  3.12132034],
  [4.49660295e-02, -2.80706765e-02,  3.12132034],
  [5.39592354e-02, -2.80706765e-02,  3.12132034],
  [6.29524413e-02, -2.80706765e-02,  3.12132034],
  [7.19456472e-02, -2.80706765e-02,  3.12132034],
  [8.09388531e-02, -2.80706765e-02,  3.12132034],
  [8.99320590e-02, -2.80706765e-02,  3.12132034],
  [9.89252649e-02, -2.80706765e-02,  3.12132034]],

 [[4.21643899e-18, -3.44298334e-02,  3.82842712],
  [8.99320590e-03, -3.44298334e-02,  3.82842712],
  [1.79864118e-02, -3.44298334e-02,  3.82842712],
  [2.69796177e-02, -3.44298334e-02,  3.82842712],
  [3.59728236e-02, -3.44298334e-02,  3.82842712],
  [4.49660295e-02, -3.44298334e-02,  3.82842712],
  [5.39592354e-02, -3.44298334e-02,  3.82842712],
  [6.29524413e-02, -3.44298334e-02,  3.82842712],
  [7.19456472e-02, -3.44298334e-02,  3.82842712],
  [8.09388531e-02, -3.44298334e-02,  3.82842712],
  [8.99320590e-02, -3.44298334e-02,  3.82842712],
  [9.89252649e-02, -3.44298334e-02,  3.82842712]]
]
TEST5_SITE = [1.1013500904783003E-18, -0.008993205895777725]
TEST5_JB_DISTANCE = 0.0
